import 'package:coinbaby/common/const/cosnt.dart';
import 'package:coinbaby/common/textstyle/textstyle.dart';
import 'package:flutter/material.dart';

class CoinCell extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: const EdgeInsets.symmetric(horizontal: 15),
      height: 61,
      child: Row(
        children: <Widget>[
          Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Text.rich(
                TextSpan(
                  children: [
                    TextSpan(text: "BTC", style: AppFont.textStyle(16, AppColor.font333, fontWeight: FontWeight.bold)),
                    TextSpan(text: "/USDT", style: AppFont.textStyle(11, AppColor.fontgrey)),
                  ]
                )
              ),
              Text("成交量42,348", style: AppFont.textStyle(13, AppColor.fontgrey),)
            ],
          ),
          Spacer(),
          Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Text("9,142.9", style: AppFont.textStyle(16, AppColor.green, fontWeight: FontWeight.bold)),
              Text("\$9,142.9", style: AppFont.textStyle(13, AppColor.fontgrey),)
            ],
          ),
          Container(
            width: 71,
            height: 31,
            margin: const EdgeInsets.only(left: 10,),
            decoration: BoxDecoration(
              color: AppColor.green,
              borderRadius: BorderRadius.circular(5)
            ),
            alignment: Alignment.center,
            child: Text("+0.41%", style: AppFont.textStyle(14, Colors.white),),
          )
        ],
      ),
    );
  }
}